Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

380
Views
[Rechazo de promesa no manejado: Error: la ubicación "imageURL" no es legible - Expo React Native

Estoy tratando de convertir una URL de imagen de firebase a base64 usando expo FileSystem pero obtengo el siguiente error.

[Rechazo de promesa no manejado: Error: la ubicación "https://pngimg.com/uploads/birds/small/birds_PNG108.png" no es legible - Expo React Native

La URL está totalmente bien y es perfecta, ya que puedo abrirla en el navegador. Estoy tratando de seguir la URL y también probé varias otras URL.

 https://pngimg.com/uploads/birds/small/birds_PNG108.png

El siguiente es mi código.

 import * as FileSystem from 'expo-file-system'; <TouchableOpacity onPress={async () => { const base64 = await FileSystem.readAsStringAsync('https://pngimg.com/uploads/birds/small/birds_PNG108.png', { encoding: 'base64' }); Share.share( { title: 'test title', url: item.url, }, { excludedActivityTypes: [ ], } ); }}> </TouchableOpacity> )}

No pude encontrar ninguna solución a este problema en ningún foro.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Tal vez deberías usar

import * as Sharing from 'expo-sharing';

Guarde la imagen temporalmente en el disco y use el uri para compartir la imagen.

que

import { Share} from 'react-native';

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!